package com.example.park_management.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName financialactivity
 */
@TableName(value ="financialactivity")
public class Finance_zzc implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer activityid;

    /**
     * 
     */
    private String activitytype;

    /**
     * 
     */
    private Float amount;

    /**
     * 
     */
    private Date activitydate;

    /**
     * 
     */
    private String description;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getActivityid() {
        return activityid;
    }

    /**
     * 
     */
    public void setActivityid(Integer activityid) {
        this.activityid = activityid;
    }

    /**
     * 
     */
    public String getActivitytype() {
        return activitytype;
    }

    /**
     * 
     */
    public void setActivitytype(String activitytype) {
        this.activitytype = activitytype;
    }

    /**
     *
     */
    public Float getAmount() {
        return amount;
    }

    /**
     * 
     */
    public void setAmount(Float amount) {
        this.amount = amount;
    }

    /**
     * 
     */
    public Date getActivitydate() {
        return activitydate;
    }

    /**
     * 
     */
    public void setActivitydate(Date activitydate) {
        this.activitydate = activitydate;
    }

    /**
     * 
     */
    public String getDescription() {
        return description;
    }

    /**
     * 
     */
    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Finance_zzc other = (Finance_zzc) that;
        return (this.getActivityid() == null ? other.getActivityid() == null : this.getActivityid().equals(other.getActivityid()))
            && (this.getActivitytype() == null ? other.getActivitytype() == null : this.getActivitytype().equals(other.getActivitytype()))
            && (this.getAmount() == null ? other.getAmount() == null : this.getAmount().equals(other.getAmount()))
            && (this.getActivitydate() == null ? other.getActivitydate() == null : this.getActivitydate().equals(other.getActivitydate()))
            && (this.getDescription() == null ? other.getDescription() == null : this.getDescription().equals(other.getDescription()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getActivityid() == null) ? 0 : getActivityid().hashCode());
        result = prime * result + ((getActivitytype() == null) ? 0 : getActivitytype().hashCode());
        result = prime * result + ((getAmount() == null) ? 0 : getAmount().hashCode());
        result = prime * result + ((getActivitydate() == null) ? 0 : getActivitydate().hashCode());
        result = prime * result + ((getDescription() == null) ? 0 : getDescription().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", activityid=").append(activityid);
        sb.append(", activitytype=").append(activitytype);
        sb.append(", amount=").append(amount);
        sb.append(", activitydate=").append(activitydate);
        sb.append(", description=").append(description);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}